import request from '@/utils/fetch'
// import axios from 'axios'
import {
  get
} from '@/utils/request'

export function test (data) {
  return request({
    url: '/test',
    method: 'post',
    data: data
  })
}

export function e404 (data) {
  return get({
    url: '/test1',
    method: 'post',
    data: data
  })
}

/**
 * 获取首页
 * @param {Object} params [请求的url地址]
 */
export const getHomepage = params => get('home', params)
